
public class Client {
	
//	    public static void main(String[] args) {
//	        Lift lift = new Lift();
//	        lift.setState(ILift.STOPPING_STATE);//电梯是停止的
//	        lift.open();//开门
//	        lift.close();//关门
//	        lift.run();//运行
//	        lift.stop();//停止
//	    }
	 public static void main(String[] args) {
	        Context context = new Context();
	        context.setLiftState(new ClosingState());

	        context.open();
	        context.close();
	        context.run();
	        context.stop();
	    }

}
